package com.ft.oa.utils;

import com.ft.oa.domain.dto.sys.SecurityUser;
import org.springframework.security.core.context.SecurityContextHolder;


/**
 * 认证相关工具类
 */
public class SecurityUtils {


    public static SecurityUser getCurrentUser(){

        return (SecurityUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();

    }



}
